package com.exceptions;

/**
 * The Class PersistenceException.
 * 
 * Exception for persistence operations
 */
public class FilterException extends Exception {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 4823535654L;

	public FilterException() {
	    super("Persitence Error");
	}

	public FilterException(String message) {
	    super("Persitence Error\n "+message);
	 
    }

	public FilterException(Throwable cause) {
		
	    super(cause);
	  
	}

	@Override
	public String toString() {
		String error = this.getClass().getName() + "\nCaused by: "
		        + this.getMessage() + "\nLocalized Messaje: "+this.getLocalizedMessage()+"\n Please contact to the system administrator";
		return error;
	}

}
